import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login/login'
import Home from '@/components/home/home'
import DApp from '@/components/dapp/dapp'
import Sweets from '@/components/sweets/sweets'
import UserQuery from '@/components/userQuery/userQuery'
import UploadData from '@/components/uploadData/uploadData'
import UserParticulars from '@/components/userQuery/userParticulars'
import Admin from '@/components/admin/admin2'
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/login',
      name: '登录',
      component: Login,
      hidden: true,
    },
    {
      path: '/home',
      name: 'home',
      component: Home,
      children: [{
        path: '/dapp',
        name: 'Dapp运营指标',
        component:DApp
      },{
          path: '/sweets',
          name: '糖果分布指标',
          component:Sweets
        },{
          path: '/userQuery',
          name: '单用户查询',
          component:UserQuery
        },{
          path: '/uploadData',
          name: '单用户查询',
          component:UploadData
        },{
        path: '/userParticulars',
        name: '奖励明细',
        component:UserParticulars
      },
        {
          path: '/admin',
          name: '权限管理',
          component:Admin
        }
      ]
    }
    ]
});

